﻿<%@ Page Language="C#" MasterPageFile="~/Shared/EOS.master" AutoEventWireup="True"
    Inherits="ETRANPORT.Web.Forms.DanhMuc.DiaDiem" CodeBehind="DiaDiem.aspx.cs" %>
    
<%@ Register Assembly="ETRANPORT.Controls" Namespace="ETRANPORT.Controls" TagPrefix="ETRANPORT" %>

<asp:Content ID="head" ContentPlaceHolderID="headCPH" runat="server" />

<asp:Content ID="content" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <asp:UpdatePanel ID="upnlInfor" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <div class="crmcontainer">
                <table class="crmtable">
                    <tbody>
                        <tr>    
                            <td class="crmcell right">Mã loại hàng hóa</td>
                            <td class="crmcell"> 
                                <div class="left">
                                    <asp:TextBox ID="txtMACV" runat="server" Width="50px" MaxLength="10" TabIndex="1" />
                                </div>
                                <div class="left filtered"></div>
                                <div class="left width-175">
                                    <div class="right">Tên loại hàng hóa</div>
                                </div>
                                <div class="left">
                                    <asp:TextBox ID="txtTENCV" runat="server" Width="250px" MaxLength="50" TabIndex="1" />
                                </div>
                                <div class="left filtered"></div>
                            </td>
                        </tr>
                        <tr>    
                            <td class="crmcell right"></td>
                            <td class="crmcell"> 
                                <div class="left">
                                    <ETRANPORT:Button ID="btnFilter" OnClick="btnFilter_Click" runat="server" CssClass="filter" TabIndex="12" />
                                </div> 
                                <div class="left">
                                    <ETRANPORT:Button ID="btnSave" OnClick="btnSave_Click" runat="server" CssClass="save" TabIndex="12" />
                                </div>   
                                <div class="left">
                                    <asp:Button ID="btnDelete" OnClick="btnDelete_Click" runat="server" CssClass="delete" TabIndex="13" />
                                </div>
                                <div class="left">
                                    <ETRANPORT:Button ID="btnCancel" OnClick="btnCancel_Click" runat="server" CssClass="cancel" TabIndex="13" />
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>  
    <br />
    <asp:UpdatePanel ID="upnlGrid" UpdateMode="Conditional" runat="server">
        <ContentTemplate>
            <div class="crmcontainer">
                <ETRANPORT:Grid ID="gvList" runat="server" UseCustomPager="true" OnRowCommand="gvList_RowCommand">
                    <PagerSettings FirstPageText="vị trí" PageButtonCount="2" />
                    <Columns>
                        <asp:TemplateField HeaderStyle-CssClass="checkbox" HeaderStyle-Width="10px">
                            <HeaderTemplate>
                                <input id="chkAllTop" title="Chọn hết / Bỏ chọn hết" name="chkAllTop" type="checkbox"
                                    onclick="CheckAllItems(this);" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <input id="Id" runat="server" type="hidden" value='<%# Eval("ID") %>' />
                                <input name="listIds" type="checkbox" value='<%# Eval("ID") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Mã loại hàng hóa" HeaderStyle-Width="100px">
                            <ItemTemplate>
                                <ETRANPORT:LinkButton ID="lnkBtnID" runat="server" CommandArgument='<%# Eval("ID") %>'
                                                   CommandName="EditItem" Text='<%# Eval("ID") %>' />
                            </ItemTemplate>
                            <ItemStyle Font-Bold="True" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="TENDIADIEM" HeaderText="Tên vị trí" />
                        <asp:BoundField DataField="MOTA" HeaderText="Mô tả vị trí" />
                    </Columns>
                </ETRANPORT:Grid>        
            </div>
        </ContentTemplate>
    </asp:UpdatePanel> 
</asp:Content>
